<include file="Public:header" />
<!--会员列表-->
<div class="pad_10" >
    <form name="searchform"  method="get" >
        <table width="100%" cellspacing="0" class="search_form">
            <tbody>
            <tr>
                <td>
                    <div class="explain_col">
                        <input type="hidden" name="m" value="Admin" />
                        <input type="hidden" name="c" value="Comment" />
                        <input type="hidden" name="a" value="index" />
                        <input type="hidden" name="menuid" value="{$menuid}" />

                        &nbsp;&nbsp;{:L('status')}:
                        <select name="status">
                            <option value="">-{:L('all')}-</option>
                            <option value="1" <if condition="$search.status eq '1'">selected="selected"</if>>已审核</option>
                            <option value="0" <if condition="$search.status eq '0'">selected="selected"</if>>未审核</option>
                        </select>
                        &nbsp;&nbsp;{:L('keyword')} :
                        <input name="keyword" type="text" class="input-text" size="25" value="{$search.keyword}" />
                        <input type="submit" name="search" class="btn" value="{:L('search')}" />
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
    <div class="J_tablelist table_list" data-acturi="{:U('Comment/ajax_edit')}">
        <table width="100%" cellspacing="0">
            <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th><span data-tdtype="order_by" data-field="id">ID</span></th>
                <th align="center"><span data-tdtype="order_by" data-field="username">用户名</span></th>
                <th align="center"><span data-tdtype="order_by" data-field="info">标题</span></th>
                <th align="center"><span data-tdtype="order_by" data-field="integral">内容</span></th>
                <th align="center"><span data-tdtype="order_by" data-field="add_time">回复</span></th>
                <th width="120"><span data-tdtype="order_by" data-field="add_time">时间</span></th>
                <th>状态</th>
                <th width="160">{:L('operations_manage')}</th>
            </tr>
            </thead>
            <tbody>
            <volist name="lists" id="val" >
                <tr>
                    <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                    <td align="center">{$val.id}</td>
                    <td align="center">{$val.nickname}</td>
                    <td align="center"><a href="{$val.url}" target="_blank">{$val.house_title}</a></td>
                    <td align="center">{$val.content}</td>
                    <td align="center">{$val.replay}</td>
                    <td align="center">{$val.add_time|date="Y-m-d H:i",###}</td>
                    <td align="center"><img data-tdtype="toggle" data-id="{$val.id}" data-field="status" data-value="{$val.status}" src="__IMG__/admin/toggle_<if condition="$val.status eq 0">disabled<else/>enabled</if>.gif" /></td>
                    <td align="center">
                        <a href="{:U('Comment/edit',array('id'=>$val['id']))}">查看</a> |
                        <a href="javascript:void(0);" class="J_confirmurl" data-uri="{:U('Comment/delete', array('id'=>$val['id']))}" data-acttype="ajax" data-msg="{:sprintf(L('confirm_delete_one'),$val['name'])}">{:L('delete')}</a></td>
                </tr>
            </volist>

            </tbody>
        </table>
        <div class="btn_wrap_fixed">
            <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>
            <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('Comment/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />
            <div id="pages">{$pages}</div>
        </div>

    </div>
</div>
<include file="Public:footer" />

</body>
</html>

